# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-pokemini
pkgver=0_git20220412
pkgrel=0
_commit="684e7ea0950f4df48cd1fbf1160e6af3c262c9f0"
pkgdesc="obscure nintendo handheld emulator"
url="https://github.com/libretro/PokeMini"
arch="all"
license="GPL-3.0-or-later"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/PokeMini/archive/$_commit.tar.gz"
builddir="$srcdir/PokeMini-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

package() {
	install -Dm644 pokemini_libretro.so "$pkgdir"/usr/lib/libretro/pokemini_libretro.so
}

sha512sums="
809f7de1ea166ba33b592a9a736677d2a072a748d9293c4216496a0f8708d04ad5888462bcacdb9ae8e9473966e01a54143bfae14b028090c90aced1dd9d81b4  libretro-pokemini-684e7ea0950f4df48cd1fbf1160e6af3c262c9f0.tar.gz
"
